package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ImcDataVersion entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "imc_data_version", catalog = "imcdbserver")
public class ImcDataVersion implements java.io.Serializable {

	// Fields

	private ImcDataVersionId id;
	private String nick;
	private String name;
	private String imcDataVersion;
	private Integer corpId;

	// Constructors

	/** default constructor */
	public ImcDataVersion() {
	}

	/** minimal constructor */
	public ImcDataVersion(ImcDataVersionId id, String nick, String name) {
		this.id = id;
		this.nick = nick;
		this.name = name;
	}

	/** full constructor */
	public ImcDataVersion(ImcDataVersionId id, String nick, String name,
			String imcDataVersion, Integer corpId) {
		this.id = id;
		this.nick = nick;
		this.name = name;
		this.imcDataVersion = imcDataVersion;
		this.corpId = corpId;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "updId", column = @Column(name = "upd_id", nullable = false)),
			@AttributeOverride(name = "imcDataName", column = @Column(name = "imc_data_name", nullable = false, length = 20)) })
	public ImcDataVersionId getId() {
		return this.id;
	}

	public void setId(ImcDataVersionId id) {
		this.id = id;
	}

	@Column(name = "nick", nullable = false, length = 32)
	public String getNick() {
		return this.nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	@Column(name = "name", nullable = false, length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "imc_data_version", length = 30)
	public String getImcDataVersion() {
		return this.imcDataVersion;
	}

	public void setImcDataVersion(String imcDataVersion) {
		this.imcDataVersion = imcDataVersion;
	}

	@Column(name = "corp_id")
	public Integer getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

}